<?php echo $tournamentName; ?>
<table>
	<tr>
		<th><?php echo $this->Paginator->sort('Court.name', 'Kort'); ?></th>
		<th><?php echo $this->Paginator->sort('start_time', 'Data rezerwacji'); ?></th>
	</tr>

	<?php foreach($reservations as $reservation): ?>
	<tr>
		<td><?php echo $reservation['Court']['name']; ?> </td>
		<td><?php echo $reservation['Reservation']['start_time']; ?> </td>
	</tr>
	<?php endforeach; ?>
</table>
<?php echo $this->Paginator->numbers(array('first'=>3,'last' => 3)); ?>

<?php if($isAdmin): ?>
	<?php echo $this->Form->postLink('Usuń turniej', array('controller'=>'Tournaments', 'action' => 'delete', $tournamentName), array('confirm'=>'Czy napewno chcesz usunąć ten turniej?')); ?>
<?php endif; ?>